package com.ruoyi.network;

import io.netty.channel.Channel;

import java.util.Date;

public class DeviceOnline {

    public DeviceOnline() {
    }

    public DeviceOnline(String deviceCode, Date joinTime, Channel channel) {
        this.deviceCode = deviceCode;
        this.joinTime = joinTime;
        this.channel = channel;
    }

    private Long deviceId;

    private String deviceCode;

    private Date joinTime;

    /**
     * 最后一次发送心跳的时间
     */
    private Date lastHeartBeat;

    private Channel channel;

    public Date getLastHeartBeat() {
        return lastHeartBeat;
    }

    public void setLastHeartBeat(Date lastHeartBeat) {
        this.lastHeartBeat = lastHeartBeat;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }
}
